// WP3.h : main header file for the WP3 application
//

#if !defined(AFX_WP3_H__71DE6EBF_4F84_4DC9_84F5_F88A81108ECE__INCLUDED_)
#define AFX_WP3_H__71DE6EBF_4F84_4DC9_84F5_F88A81108ECE__INCLUDED_

#include "ExpFuse.h"	// Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#ifndef __AFXWIN_H__
	#error include 'stdafx.h' before including this file for PCH
#endif

#include "resource.h"       // main symbols
#include "version.h"


/////////////////////////////////////////////////////////////////////////////
// CWP3App:
// See WP3.cpp for the implementation of this class
//



#define TR(THESTRINGID) ((CWP3App*)AfxGetApp())->LoadString(THESTRINGID)
//#define TR(THESTRINGID) ((CWP3App*)AfxGetApp())->m_pLanguage->GetString(THESTRINGID)
#define TRDLG(D_ID,S_ID) GetDlgItem(D_ID)->SetWindowText(TR(S_ID)) 



class CWP3App : public CWinApp
{
public:

	CString GetAppPath();
	BOOL IsFileExist(CString F);
	CString CheckPath(CString P);
	HINSTANCE LoadDLL(CString FileName);
	CArray<HINSTANCE,HINSTANCE> m_DLL;
	CArray<CString,CString> m_FName;
	CWP3App();

	CString LoadString(UINT id);



// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CWP3App)
	public:
	virtual BOOL InitInstance();
	virtual int ExitInstance();
	//}}AFX_VIRTUAL

// Implementation
	//{{AFX_MSG(CWP3App)
	afx_msg void OnAppAbout();
	afx_msg void OnHelp();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
protected:
	void RememberHandle(HINSTANCE H,CString FName);
};


/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_WP3_H__71DE6EBF_4F84_4DC9_84F5_F88A81108ECE__INCLUDED_)
